package com.marktotop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.marktotop.entity.system.Department;
import com.marktotop.vo.system.DepartmentVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author MarkToTop
 * @since 2021-07-12
 */
public interface DepartmentMapper extends BaseMapper<Department> {

    /**
     * 条件分页展示部门信息
     *
     * @param page
     * @param departmentVO
     * @return
     */
    IPage<DepartmentVO> getDeptsByPage(Page<DepartmentVO> page, @Param("departmentVO") DepartmentVO departmentVO);
}
